<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>

<%@taglib prefix="f" uri="http://java.sun.com/jsf/core"%>
<%@taglib prefix="h" uri="http://java.sun.com/jsf/html"%>
<%@ taglib uri="http://myfaces.apache.org/tomahawk" prefix="t"%>
<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>

<f:view>
    <link href="/general/css/admin_1.css" rel="stylesheet" type="text/css"/>
    <h:form>
        <h:panelGrid columns="1" width="100%" styleClass="tablaprincipal">
            <h:outputLabel value="Reporte Lista de Ingresos por Evento" />
        </h:panelGrid>
        <a4j:outputPanel ajaxRendered="true">
            <h:messages id="lblMessages" styleClass="messages" infoClass="infoClass" errorClass="errorClass"
                        warnClass="warnClass" showDetail="true" errorStyle="color:red;"
                        warnStyle="color:green;" infoStyle="color:black;" fatalStyle="color:black"/>
        </a4j:outputPanel>
        <rich:spacer width="50" height="60"/>
        <h:panelGrid columns="3" style="margin-left:15%;font-size:11" >
            <h:outputLabel value="Nombre Evento"/>
            <h:inputText id="city" value="#{RepEIController.evento}" size="45"/>
            <rich:suggestionbox for="city" var="item" height="140" width="360"
                                fetchValue="#{item.preevento.preNombre}" minChars="1" nothingLabel="No existen Evento"
                                suggestionAction="#{EventoController.autocompletarEventos}">
                <h:column>
                    <h:outputText value="#{item.preevento.preNombre}" />
                </h:column>
                <a4j:support event="onselect">
                    <f:setPropertyActionListener value="#{item.preevento.preCodigo}" target="#{RepEIController.codEvento}" />
                </a4j:support>
            </rich:suggestionbox>
            <br/>
            <h:commandButton value="Buscar" title="Buscar" action="#{RepEIController.buscarIngresos}" image="/img/excel.png"/>
        </h:panelGrid>
    </h:form>
</f:view>

